<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="java.util.HashMap"%>
<%@page import="comm.util.RequestManager"%>
<%
	HashMap subHm = RequestManager.getRequest(request);
%>

<div id="smallmenu"">
	<ul>
		<li><a href="<%=request.getContextPath()%>/?content=mypage&menu=data&sub=total">전체</a></li>
		<li><a href="<%=request.getContextPath()%>/?content=mypage&menu=data&sub=link">링크</a></li>
		<li><a href="<%=request.getContextPath()%>/?content=mypage&menu=data&sub=image">이미지</a></li>
		<li><a href="<%=request.getContextPath()%>/?content=mypage&menu=data&sub=file">파일</a></li>
	</ul>
</div>


<div>
	<!-- 링크 부분 -->
	<%if(subHm.get("SUB") != null && subHm.get("SUB").equals("link")){ %>
		<jsp:include page="./link.jsp"></jsp:include>
		
	<!-- 이미지 부분 -->
	<%}else if(subHm.get("SUB") != null && subHm.get("SUB").equals("image")){ %>
		<%@include file="./image.jsp" %>
		
	<!-- 파일 부분 -->
	<%}else if(subHm.get("SUB") != null && subHm.get("SUB").equals("file")){ %>
		<%@include file="./file.jsp" %>
		
	<!-- 전체 부분 -->
	<%}else{ %>
		<%@include file="./total.jsp" %>
	<%}%>
	<div>
	</div>
</div>